//
// Created by hjie on 23-7-23.
//

#pragma once
#include <cstring>
#include <string>
#include <vector>
#include <memory>
#include <unistd.h>
#include "aac_frame.h"
#include "data_buffer.h"

class AACParser
{
public:
    AACParser(const std::string & filename);
    ~AACParser();
    bool OpenFile();
    bool ParseData();
    void DumpFrameData(const std::string & dump_filename = "");
private:
    std::string m_parse_filename;
    DataBuffer * m_buffer;
private:
    std::vector<AACFrame> m_frame_vec;
};
